@charset "utf-8";
$fontSize:40;
@function r($p) {
    @return $p/$fontSize*1rem;
}

.game_banner_control {
    font-size: 20px!important;
    width: 20px!important;
    height: 20px!important;
}

.hot_game {
    width: 76%;
    max-width: 1200px;
    margin: 0 auto;
}

.hotgame_item {
    margin-bottom: 62px;
}

.hotgame_character {
    position: relative;
    padding-left: 0;
    padding-right: 0;
    >img {
        width: 100%;
        margin-top: 55px;
    }
}

.hotgame_icon {
    background-image: url(../img/hot-icon.png);
    width: 40px;
    height: 100px;
    position: absolute;
    top: 0;
    left: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    p {
        color: white;
        font-size: 20px;
        width: 20px;
    }
}

.hotgame_cont {
    padding-left: 0;
    padding-right: 0;
}

.hotgame_txt {
    p:nth-child(1) {
        font-size: 30px;
        color: #2a2a2a;
        margin-top: 33px;
    }
    p:nth-child(2) {
        font-size: 14px;
        color: #898989;
        margin-top: 18px;
    }
}

.text_right {
    text-align: right;
}

.hotgame_img {
    width: 100%;
    display: flex;
    justify-content: space-around;
    div {
        margin: 30px 15px 0;
        border-radius: 5px;
        overflow: hidden;
        img {
            width: 100%;
        }
    }
}

.more_case {
    width: 76%;
    max-width: 1200px;
    margin: 62px auto 92px;
    padding-left: 0;
    padding-right: 0;
    >p {
        font-size: 36px;
        color: #010101;
        margin-bottom: 38px;
    }
}

.case_item {
    width: 100%;
    margin-bottom: 43px;
    p {
        font-size: 14px;
        color: #2a2a2a;
        margin-top: 13px;
        text-align: center;
    }
}

.case_item_img {
    width: 100%;
    border-radius: 5px;
    height: 0;
    padding-top: 44%;
    position: relative;
    overflow: hidden;
    img {
        position: absolute;
        height: 100%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

.case_info {
    position: absolute;
    top: 0;
    left: -623px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    color: white;
    font-size: 12px;
    padding: 13px;
}
//.case_item:hover .case_info {
//  left: 0;
//  -webkit-animation-name: fadeInLeft;
//  animation-name: fadeInLeft;
//  -webkit-animation-duration: 1s;
//  animation-duration: 1s;
//  -webkit-animation-fill-mode: both;
//  animation-fill-mode: both;
//}
//.case_item:not(hover) .case_info{
//  left: 0;
//  -webkit-animation-name: fadeOutLeft;
//  animation-name: fadeOutLeft;
//  -webkit-animation-duration: 1s;
//  animation-duration: 1s;
//  -webkit-animation-fill-mode: both;
//  animation-fill-mode: both;
//}
@-webkit-keyframes fadeInLeft {
    from {
        opacity: 0;
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
    }
    to {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}
@keyframes fadeInLeft {
    from {
        opacity: 0;
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
    }
    to {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

@-webkit-keyframes fadeOutLeft {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
    }
}

@keyframes fadeOutLeft {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
    }
}
@media only screen and (max-width: 768px){
    .hot_game {
        width: 90%;
    }
    
    .hotgame_item {
        margin-bottom: 32px;
    }
    .hotgame_character {
        text-align: center;
        >img {
            width: 50%;
            margin-top: 30px;
            
        }
    }
    .hotgame_txt {
        p:nth-child(1) {
            margin-top: 0px;
        }
    }
    .hotgame_img {
        justify-content: space-between;
        div {
            margin: 30px 5px 0;
            img {
                width: 100%;
            }
        }
    }
    .more_case {
        width: 90%;
        margin: 12px auto 52px;
        >p {
            font-size: 26px;
            margin-bottom: 28px;
        }
        .row>div{
            padding-left: 8px!important;
            padding-right: 8px!important;
        }
    }
    .case_item {
        margin-bottom: 23px;
    }
    .case_item_img {
        width: 100%;
        border-radius: 5px;
        height: 0;
        padding-top: 44%;
        position: relative;
        overflow: hidden;
        img {
            position: absolute;
            height: 100%;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
    }
}
